package com.moxiao.yfjh.module.blind.convert.background;

import com.moxiao.yfjh.framework.common.pojo.PageResult;
import com.moxiao.yfjh.module.blind.controller.admin.background.vo.BackgroundCreateReqVO;
import com.moxiao.yfjh.module.blind.controller.admin.background.vo.BackgroundExcelVO;
import com.moxiao.yfjh.module.blind.controller.admin.background.vo.BackgroundRespVO;
import com.moxiao.yfjh.module.blind.controller.admin.background.vo.BackgroundUpdateReqVO;
import com.moxiao.yfjh.module.blind.dal.dataobject.background.BackgroundDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 背景图管理 Convert
 *
 * @author mx
 */
@Mapper
public interface BackgroundConvert {

    BackgroundConvert INSTANCE = Mappers.getMapper(BackgroundConvert.class);

    BackgroundDO convert(BackgroundCreateReqVO bean);

    BackgroundDO convert(BackgroundUpdateReqVO bean);

    BackgroundRespVO convert(BackgroundDO bean);

    List<BackgroundRespVO> convertList(List<BackgroundDO> list);

    PageResult<BackgroundRespVO> convertPage(PageResult<BackgroundDO> page);

    List<BackgroundExcelVO> convertList02(List<BackgroundDO> list);

}
